package 行为型模式.观察者模式;
//具体的观察者角色类
public class WeChatUser implements Observe{

    private String name;

    public WeChatUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name+"-"+message);
    }
}
